public class FuzzyAgent extends Agent
fNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace| Constructor and Description |
|---|
FuzzyAgent() |
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
Buyer(int i) |
static double |
CalculateCost(double constant,
int NoIteration) |
Action |
chooseAction()
this function is called after ReceiveMessage,
with an Offer-action.
|
static double |
FinalDistance(double[] dist) |
static void |
FuzzyDist() |
static java.lang.String |
getVersion() |
void |
init()
This method is called by the protocol every time before starting a new
session after the internalInit method is called.
|
static double[] |
Intersection(double[] xPars,
double[] yPars)
Function Intersection returns intersection of two lines
|
void |
ReceiveMessage(Action opponentAction)
informs you which action the opponent did
|
protected static boolean |
Seller(int i) |
static double |
ThreshFind(int deadline,
int time,
double pick,
double stretch)
Function threshfind() which receives the current time of negotiation, pick value and
stretch value of the offers and generates the threshhold for each offer
|
endSession, getAgentID, getName, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getUtility, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleeppublic Action chooseAction()
AgentchooseAction in class Agentpublic static java.lang.String getVersion()
public void init()
Agentpublic void ReceiveMessage(Action opponentAction)
AgentReceiveMessage in class Agentpublic static double CalculateCost(double constant,
int NoIteration)
protected static boolean Buyer(int i)
protected static boolean Seller(int i)
public static double ThreshFind(int deadline,
int time,
double pick,
double stretch)
public static double[] Intersection(double[] xPars,
double[] yPars)
public static void FuzzyDist()
public static double FinalDistance(double[] dist)